package com.yuyou.weixin.service.impl;

import com.yuyou.weixin.entity.FnWxSrsActivityUserRelation;
import com.yuyou.weixin.mapper.FnWxSrsActivityUserRelationMapper;
import com.yuyou.weixin.service.IFnWxSrsActivityUserRelationService;
import com.yuyou.weixin.vo.resp.AssistanceUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//@Service
public class FnWxSrsActivityUserRelationServiceImpl implements IFnWxSrsActivityUserRelationService {

    @Autowired
    private FnWxSrsActivityUserRelationMapper mapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(FnWxSrsActivityUserRelation record) {
        return mapper.insert(record);
    }

    @Override
    public FnWxSrsActivityUserRelation selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FnWxSrsActivityUserRelation record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<AssistanceUser> getAssistanceUser(Long srsActivityId) {
        return mapper.getAssistanceUser(srsActivityId);
    }
}